package cn.jltx.support;

/**
 * @author jltxseo
 *         Created by junlintianxia on 2017/05/07.
 */

public interface ISupportFragment extends ISupport{
    /**
     * 子栈内 出栈
     */
    void popChild();

    /**
     * @param fragmentClass 目标子Fragment的Class
     * @param <T>           继承自SupportFragment的Fragment
     * @return 目标子Fragment
     */
    <T extends SupportFragment> T findChildFragment(Class<T> fragmentClass);
    <T extends SupportFragment> T findChildFragment(String fragmentTag);

    void replaceFragment(SupportFragment toFragment, boolean addToBack);

}
